# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=dovecot-fts-xapian
pkgver=1.3.2
pkgrel=1
pkgdesc="Dovecot xapian fts plugin"
url="https://github.com/grosjo/fts-xapian"
arch="all"
license="LGPL-2.1-or-later"
depends="dovecot xapian-core"
makedepends="automake autoconf libtool dovecot-dev xapian-core-dev icu-dev sqlite-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/grosjo/fts-xapian/archive/$pkgver.tar.gz"
builddir="$srcdir/"fts-xapian-$pkgver

prepare() {
	default_prepare
	libtoolize
	autoreconf -vif
}

build() {
	PANDOC=false ./configure \
		--enable-static=no \
		--with-dovecot=/usr/lib/dovecot
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="49791a44f9bac069b49b8a998a7ce2c71f3c5fbcd8c78986f5b22422aff7f257b1afc76d2e7e71f96be835b854380dd9504f78d80267fd882969d855dee38898  dovecot-fts-xapian-1.3.2.tar.gz"
